package org.micode.libs.dao.base;

import org.apache.ibatis.annotations.Param;
import org.micode.common.domain.Page;
import org.micode.common.domain.base.BaseEntity;

import java.util.List;

/**
 * 实体类的读取器基类
 */
public interface BaseQueryDao<T extends BaseEntity> extends BaseInitDao<T> {

    List<Long> countByExample(@Param("example") T example);

    List<T> listByExample(@Param("example") T example,
                          @Param("page") Page page,
                          @Param("orderBy") String orderBy);

}
